package com.zhuang.bridge;

/**
 * @Classname Phone
 * @Description  手机类 抽象类
 * @Date 2021/3/22 9:30
 * @Created by dell
 */

public abstract class Phone {
    //组合品牌
    private Brand brand;

    //构造器
    public Phone(Brand brand) {
        super();
        this.brand = brand;
    }

    protected void open() {
        this.brand.open();
    }

    protected void close() {
        this.brand.close();
    }

    protected void call() {
        this.brand.call();
    }
}
